import Phaser from 'phaser'
import { Boot } from './scenes/Boot'

// Find out more information about the Game Config at:
// https://newdocs.phaser.io/docs/3.70.0/Phaser.Types.Core.GameConfig
const config = {
  type: Phaser.AUTO,
  width: 800,
  height: 600,
  parent: 'game-container',
  backgroundColor: '#028af8',
  physics: {
    default: 'arcade',
    arcade: {
      gravity: { y: 300 },
      debug: false
    }
  },
  scene: [Boot]
}

const StartGame = (parent) => {
  return new Phaser.Game({ ...config, parent: parent })
}

export default StartGame

